﻿
using Admin.NET.Application.Entity;

namespace Admin.NET.Application;

/// <summary>
/// 模板预警输出参数
/// </summary>
public class DeiviceTemplateTriggerOutput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public long Id { get; set; }
    
    /// <summary>
    /// 触发器名
    /// </summary>
    public string TriggerName { get; set; }
    
    /// <summary>
    /// 触发类型
    /// </summary>
    public TriggerType TriggerType { get; set; }
    
    /// <summary>
    /// 从机变量
    /// </summary>
    public long TemplatePointId { get; set; } 
    
    /// <summary>
    /// 从机变量 描述
    /// </summary>
    public string TemplatePointIdPointName { get; set; } 
    
    /// <summary>
    /// 触发条件
    /// </summary>
    public TriggerCondition TriggerCondition { get; set; }
    
    /// <summary>
    /// 是否预警
    /// </summary>
    public bool Status { get; set; }
    
    /// <summary>
    /// 报警抓拍
    /// </summary>
    public bool Capture { get; set; }
    
    /// <summary>
    /// 报警推送内容
    /// </summary>
    public string? CustomContentAlarm { get; set; }
    
    /// <summary>
    /// 报警恢复推送内容
    /// </summary>
    public string? CustomContentNormal { get; set; }
    
    /// <summary>
    /// 是否联动
    /// </summary>
    public bool LinkageControlStatus { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
    
    /// <summary>
    /// 联动类型
    /// </summary>
    public ControlType ControlType { get; set; }
    
    /// <summary>
    /// 发送类型
    /// </summary>
    public LinkageControlSendType LinkageControlSendType { get; set; }
    
    /// <summary>
    /// 联动的变量
    /// </summary>
    public long ControlTemplatePointId { get; set; } 
    
    /// <summary>
    /// 联动的变量 描述
    /// </summary>
    public string ControlTemplatePointIdPointName { get; set; } 
    
    /// <summary>
    /// 下发数据
    /// </summary>
    public string? ControlSendData { get; set; }
    
    /// <summary>
    /// 最大值
    /// </summary>
    public double? Max { get; set; }
    
    /// <summary>
    /// 最小值
    /// </summary>
    public double? Min { get; set; }
    
    /// <summary>
    /// 报警死区
    /// </summary>
    public double? DeadZone { get; set; }
    
    /// <summary>
    /// 创建者部门Id
    /// </summary>
    public long? CreateOrgId { get; set; }
    
    /// <summary>
    /// 创建者部门名称
    /// </summary>
    public string? CreateOrgName { get; set; }
    
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }
    
    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }
    
    /// <summary>
    /// 创建者Id
    /// </summary>
    public long? CreateUserId { get; set; }
    
    /// <summary>
    /// 创建者姓名
    /// </summary>
    public string? CreateUserName { get; set; }
    
    /// <summary>
    /// 修改者Id
    /// </summary>
    public long? UpdateUserId { get; set; }
    
    /// <summary>
    /// 修改者姓名
    /// </summary>
    public string? UpdateUserName { get; set; }
    
    /// <summary>
    /// 软删除
    /// </summary>
    public bool IsDelete { get; set; }
    
    }
 

